package cn.qayy.dto;

import java.io.Serializable;
/**
 * @author jobs1127
 * 小包、自营 模式的库存项：客户需要合并，其他唯一项：公司+品种+包装+模式
 */
public class KuCunItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String complany="";
	private String product="";
	private String pack="";
	private String mode="";
	private String tx="";
	
	private String province="";//省份
	private String client="";//客户：甲方、乙方、客户
	private String qichu="";//期初 +
	private String xiaoshou="";//销售+
	private String diaojing="";//调拨进+
	private String diaochu="";//调拨进-
	private String cunxiao="";//纯销-
	private String kucun="";//理论库存
	private String judge="";//行为
	
	private String etime="";//计算库存的截止时间
	private String qichuScount="";//期初折量
	private String xiaoshouScount="";//销售折量
	private String diaojingScount="";//调拨进折量
	private String diaochuScount="";//调拨进折量
	private String cunxiaoScount="";//纯销折量
	private String kucunScount="";//理论库存折量
	
	public KuCunItem(String complany, String product, String pack, String mode, String tx) {
		super();
		this.complany = complany;
		this.product = product;
		this.pack = pack;
		this.mode = mode;
		this.tx = tx;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((complany == null) ? 0 : complany.hashCode());
		result = prime * result + ((mode == null) ? 0 : mode.hashCode());
		result = prime * result + ((pack == null) ? 0 : pack.hashCode());
		result = prime * result + ((product == null) ? 0 : product.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		KuCunItem other = (KuCunItem) obj;
		if (complany == null) {
			if (other.complany != null)
				return false;
		} else if (!complany.equals(other.complany))
			return false;
		if (mode == null) {
			if (other.mode != null)
				return false;
		} else if (!mode.equals(other.mode))
			return false;
		if (pack == null) {
			if (other.pack != null)
				return false;
		} else if (!pack.equals(other.pack))
			return false;
		if (product == null) {
			if (other.product != null)
				return false;
		} else if (!product.equals(other.product))
			return false;
		return true;
	}
	public String getComplany() {
		return complany;
	}
	public String getMode() {
		return mode;
	}
	public String getPack() {
		return pack;
	}
	public String getProduct() {
		return product;
	}
	public String getTx() {
		return tx;
	}
	public void setTx(String tx) {
		this.tx = tx;
	}
	public void setComplany(String complany) {
		this.complany = complany;
	}
	public void setMode(String mode) {
		this.mode = mode;
	}
	public void setPack(String pack) {
		this.pack = pack;
	}
	public void setProduct(String product) {
		this.product = product;
	}
	public KuCunItem(String complany, String product, String pack, String mode) {
		super();
		this.complany = complany;
		this.product = product;
		this.pack = pack;
		this.mode = mode;
	}
	public KuCunItem() {
		super();
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getClient() {
		return client;
	}
	public void setClient(String client) {
		this.client = client;
	}
	public String getQichu() {
		return qichu;
	}
	public void setQichu(String qichu) {
		this.qichu = qichu;
	}
	public String getXiaoshou() {
		return xiaoshou;
	}
	public void setXiaoshou(String xiaoshou) {
		this.xiaoshou = xiaoshou;
	}
	public String getDiaojing() {
		return diaojing;
	}
	public void setDiaojing(String diaojing) {
		this.diaojing = diaojing;
	}
	public String getDiaochu() {
		return diaochu;
	}
	public void setDiaochu(String diaochu) {
		this.diaochu = diaochu;
	}
	public String getCunxiao() {
		return cunxiao;
	}
	public void setCunxiao(String cunxiao) {
		this.cunxiao = cunxiao;
	}
	public String getKucun() {
		return kucun;
	}
	public void setKucun(String kucun) {
		this.kucun = kucun;
	}
	public String getJudge() {
		return judge;
	}
	public void setJudge(String judge) {
		this.judge = judge;
	}
	public String getEtime() {
		return etime;
	}
	public void setEtime(String etime) {
		this.etime = etime;
	}
	public String getQichuScount() {
		return qichuScount;
	}
	public void setQichuScount(String qichuScount) {
		this.qichuScount = qichuScount;
	}
	public String getXiaoshouScount() {
		return xiaoshouScount;
	}
	public void setXiaoshouScount(String xiaoshouScount) {
		this.xiaoshouScount = xiaoshouScount;
	}
	public String getDiaojingScount() {
		return diaojingScount;
	}
	public void setDiaojingScount(String diaojingScount) {
		this.diaojingScount = diaojingScount;
	}
	public String getDiaochuScount() {
		return diaochuScount;
	}
	public void setDiaochuScount(String diaochuScount) {
		this.diaochuScount = diaochuScount;
	}
	public String getCunxiaoScount() {
		return cunxiaoScount;
	}
	public void setCunxiaoScount(String cunxiaoScount) {
		this.cunxiaoScount = cunxiaoScount;
	}
	public String getKucunScount() {
		return kucunScount;
	}
	public void setKucunScount(String kucunScount) {
		this.kucunScount = kucunScount;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
